﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
	<meta charset="utf-8" />
    <script src="/Url.js"></script>
</head>
<body>
    <form action="<%=Url.App_Index_index();%>">
        <input name="name" type="text" maxlength="10" required />
        <input type="submit" value="提交"/>
    </form>
    <div>
        <input id="name" type="text" maxlength="10" required  />
        <input type="button" onclick="index();" value="提交" />
    </div>
    <script>
        function index() {
            $.post(Url.App_Index_index(), {
                "name": $("name").val()
            }, function (data) {
                if (data.code == 1) {
                    alert(data.msg);
                }
            });
        }
    </script>
</body>
</html>
